package com.leeon.generics;

public class Coffee {

	private static long counter = 0;
	private final long id = counter++;
	
	public String toString(){
		return getClass().getSimpleName() + " " + id;
	}
	
	public void print(){
		System.out.println(" counter " + counter);
	}
	
}
